//
//  HTTPConfig.swift
//  MilanoNetwork
//
//  Created by sunlubo on 2017/2/20.
//  Copyright © 2017年 milanosoft. All rights reserved.
//

import Foundation

/// HTTP配置信息
public struct HTTPConfig {
    /// 主机地址
    let host: String
    /// 端口
    let port: Int
    /// 是否采用HTTPS
    let isSecure: Bool
    
    public init(host: String, port: Int, isSecure: Bool) {
        self.host = host
        self.port = port
        self.isSecure = isSecure
    }
    
    public static let `default` = HTTPConfig(host: "127.0.0.1", port: 80, isSecure: false)
}
